package ualrcdg.shared.requests;

/**
 * Base class for all CDG "Server Request" DTOs. See CDG XML Specifications: Server Requests.
 */
public class CDGRequest
{
	public static final String dtdDomain = "http://www.ualrcdg.com/";
	
	public final String requestId;
	
	/**
	 * Primary constructor
	 * 
	 * @param requestId the requestId of the CDGRequest object to be created
	 */
	public CDGRequest( String requestId )
	{
		if( requestId == null )
		{
			throw new NullPointerException( "CDGRequest: unable to create request. Null parameters not allowed." );
		}
		this.requestId = requestId;
	}

	/*
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString( )
	{
		return "CDGRequest [requestId=" + requestId + "]";
	}
}
